// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 48;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The cave to the northwest is a disaster. A literal disaster.";
	text2 = "Visibility is not a problem. The cave is criss-crossed with trenches of glowing green slime. It slopes upward to the northwest, where a pair of stone towers stick out of the wall of the cavern.";
	text3 = "The rivers of goo are a sign of neglect, of magical experiments allowed to run and never cleaned up. The burning waste is slowly oozing to the south. When it hits the lava, the results will be spectacular.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = gf(48,13) == 0;
	text1 = "Unsurprisingly, some blobs of the magical slime absorbed a bit too much magical energy. They became mobile on their own and struck out looking for adventure. They are drawn unerringly toward you.";
	code =
		sf(48,13,1);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "As you run over the slick cave floor and try to escape the burning slime pool, you receive an unpleasant surprise.";
	text2 = "The noise and smoke have drawn every slime in the area. Some of them are tiny and cute. You smash them easily.";
	text3 = "Others are much larger. They glide into the cave toward you, hoping for more nice organic material to absorb.";
	code =
		set_out_fight_field(5);
	break;
		
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You stand in the middle of a disgusting expanse of goo globs. They twitch slowly, trying to attack you, and then stop moving.";
	text2 = "You poke through the slime piles. There are a few dissolving bones and pitted bits of iron. Not interesting. You also find a necklace that somehow survived the acidic excretions of the goo.";
	code =
		reward_give(509);
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "The walking corpses have been destroyed. You search them. Most of their wealth fell out through their torn clothes and packs.";
	text2 = "You do find a couple pieces of jewelry and a decent-sized chunk of deep metal.";
	code =
		change_coins(24,TRUE);
				change_crafting(0,0,0,1,0);

	break;
	
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = gf(148,11) == 0;
	question = "Name";
	text1 = "You find a tunnel in the base of the cave wall. Once, it was a mine. Then a tendril of slime river reached it. Now it is a breeding pit. Tiny blobs of slime ooze around the entrance, gradually absorbing each other and growing larger, until they leave and explore the cave.";
	text2 = "It is a definite menace, and it will remain so until someone cleans it up.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Enter the cave.";
	text1 = "You walk into the cave, squishing dozens of tiny slimelets underfoot. Not far inside the cave, you find the source of the problem. It's a lake of green, glowing goo, twenty feet across. It's not attacking. It doesn't move. It just absorbs heat, grows, and spits out new baby slimes.";
	text2 = "It would not be hard to disrupt the thing. A few jets of magical flame or a large bonfire would do the trick.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "You back out and safely escape. It's definitely not your problem.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Burn the place out.";
	text1 = "It takes an hour to set a properly focused mechanism of destruction. Once you ignite it, you are pleased to find that the glowing slime is actually flammable. As you run for the exit, the place burns vigorously. No more slimes will be produced here for a while.";
	action = END_TALK;
	code =
		sf(148,11,1);
		make_outdoor_enc(424,200,0);
	break;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You see a group of Ro miners nearby. They are stumbling around, seemingly at random, tools hanging limply from their hands.";
	text2 = "They haven't noticed you. Which is odd, because you are out in the open.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Talk to them.";
	text1 = "When you get close, they finally notice. They look up at you, and you realize that their skin is blotchy and green.";
	text2 = "The slime has infected these people. They aren't people anymore.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Avoid them.";
	text1 = "You walk away. They don't notice.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;
		
	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				